package main

import (
	"log"
	"net/http"
	"time"
)

func main() {
	//要管理服务端的行为，可以创建一个自定义的Server：

	s := &http.Server{
		Addr: ":8080",
		//Handler:        myHandler,
		ReadTimeout:    10 * time.Second,
		WriteTimeout:   10 * time.Second,
		MaxHeaderBytes: 1 << 20,
	}
	log.Fatal(s.ListenAndServe())

}
